home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / gfx / daggex / docs / clients / xfig / todo < prev    next >
Encoding:
Text File  |  1994-06-04  |  8.9 KB  |  162 lines

  1. This file contains some possible things to do in future versions of xfig.
  2.  
  3. add the concept of "layers" for each depth.  That way a user may work on 
  4.     certain layers at one time, masking out or overlaying the other layers
  5.     as desired.
  6. make <Shift>middle mouse button DELETE previous points just created during
  7.     create POLYobject/ARC/Ellipse etc.  That way, one may backup when
  8.     creating objects.
  9. create resource for "print" command (e.g. lp, lpr, whatever) which uses meta-
  10.     notation to place filename (e.g.  print_command: "lpr -P%p %f" where %p
  11.     is the printer string and %f is the filename)
  12. put text FLAGS in indicator buttons
  13. use floating point coordinates for objects (at least internally to xfig if not
  14.     in the figure file)
  15. super/subscripts for text objects
  16. make line counter update correctly when reading multiple-line POLYLINES and
  17.     SPLINES from input file
  18. add at least 90-degree rotated text using pixmaps
  19. fix grid rounding problems at 0.75 zoom factor
  20. allow vertically-aligned text
  21.   "top" would mean the insertion point specifies the line over the top of the
  22.         text
  23.   "middle" would mean that it specifies the midline of the text (I'm not
  24.         sure how this is defined, perhaps the average of top and base
  25.         or top and bottom.
  26.   "base" would mean the line under all letters which do not hang down.
  27.         For example, g and j extend below the baseline.
  28.   "bottom" would mean the time under the bottom of the text including
  29.         descenders.
  30. allow background color for figure and store in fig file - also requires that
  31.     fig2dev knows about this background color
  32. allow printing of grid in figure
  33. have arc sub-type 2 for pie wedge-type arcs
  34. have common edit popup for all four splines to allow conversion between all
  35. allow fractional text sizes (float)
  36. save modified_flag before file operations and restore if undo used
  37. Should arrow size change in update mode when linewidth changes?
  38. investigate whether eps objects that don't have a preview bitmap
  39.     are scaled correctly
  40. add ability to change arrow size from edit panel
  41. change eps_bitmaps so that background is transparent (needs to work
  42.     in normal and reverse-video modes).
  43. Make popup windows come up so that they don't overlap the figure (if possible).
  44.     An edit popup window should at least not overlap the
  45.     object being edited (again only if possible).
  46. Possibly make extension to Fig protocol to handle several line 
  47.     cap/join styles (e.g. round, butt, miter)
  48. Use fill pattern (grey-shading) to mimic color objects on monochrome systems.
  49. Extend smart links to work for SCALE, MOVEPT and perhaps EDIT, UPDATE.
  50.     Could also extend them to work for arc-type links and for
  51.     ellipse/circle objects.  Also, at the moment smart-links
  52.     only work for one end of a link if both ends of the link
  53.     happen to touch the object being operated on.  To fix this would
  54.     require changing the F_linkinfo structure to have left_endpt,
  55.     left_prevpt, right_endpt, right_prevpt fields instead of the current
  56.     endpt, prevpt and two_pts fields.
  57. Make xfig resources more consistent with normal use of resources in X clients.
  58.     e.g. provide support to allow each command button (say) to be
  59.     a different color.  Ditto for mode buttons, etc.
  60. investigate if we should be setting initialResourcesPersistent to false for
  61.     widgets that are created and destroyed as required.
  62. Still need to think about how point positioning should be utilized with
  63.     many of the editing commands, e.g. if point positioning is set to
  64.     large grid and you atr trying to move an object, should:
  65.     a) it be ignored, b) you can pick up an object anywhere but
  66.     you must put the 'pick-up' point back on a grid posn,
  67.     c) you have to pick up and put down objects at grid posns,
  68.     d) you can pick up and place an object anywhere but when you
  69.     place it, the point on the object closest the pickup point is
  70.     automatically rounded to the nearest grid posn, e) you can
  71.     pick up objects anywhere and movement is multiples of the grid size.
  72.     The current behaviour is c) and b) can be mimicked by changing the
  73.     point posn indicator mid-move.  It has the disadvantage that you
  74.     may not be able to pick up an object which isn't on the grid points.
  75.     I think e) is the next best but it won't let you mimick b).
  76. Use clipping rectangles in more places:
  77.     use the redisplay_* routines as necessary.
  78. allow popup menus to be pinned?
  79. have a resource which can be set to keep backups during a save, instead of
  80.     prompting the user about overwrite etc.
  81. make a keypad label:
  82.     This should popup in the mousefun window whenever a panel for
  83.     entering text is entered.  The kbd_ic icon is already there.
  84. zooming of text is still a kludge. (It doesn't work properly yet)
  85. make arcs use pw_curve to speed them up.
  86. add bounding box to every F_object definition, useful for:
  87.     1) faster drawing of rubber objects
  88.     2) handling the selective redrawing of figures better after they become
  89.        the innocent victim during an expose or erasure of another object
  90. things like pan/zoom/resize/iconify will still leave junk on the screen
  91.     or mess up the figure if you are in the middle of drawing it:
  92.     One solution is to call canvas_rightbut_proc whenever the
  93.     action_on flag is set and one of the above functions is called.
  94.     This forces the operation being performed to be cancelled - probably
  95.     not a good idea for panning - we might be trying to pan a little
  96.     bit to place the last point in a large object.
  97.     Another solution is to have a big case statement which performs
  98.     a single elastic draw of whatever object is being drawn/moved etc.
  99.     The function would need to be called before an iconify (or
  100.     whatever) and again after the operation was completed.  This
  101.     would allow drawing operations to be continued after window functions
  102.     had been performed.
  103.     A third solution is to use a canvas_elasticdraw_save parameter
  104.     instead of using a case statement - it would need to be set
  105.     prior to every elastic draw operation.
  106. Generalize align mode (like glue mode) to allow arbitrary tagged objects to be
  107.     aligned rather than just compounds.
  108. Additional align mode options for distributing objects evenly within a compound
  109.     or abutting them together: abutT, abutB, abutL, abutR, distH, distV
  110. Some facility to provide better support for small screens.
  111.     e.g. scrollable indicator button list or automatic resizing
  112.     to have several rows as needed.  Similarly for mode panel.
  113.     A good test is to limit the total space to 640x480 so that
  114.     it is still useable on an IBM-PC VGA screen.
  115. Make a raise/lower depth feature:
  116.     the raise_ic icon is already in w_icons.c
  117. Make xfig understand depth better:
  118.     If you set the depth using the object edit panels, xfig will redraw
  119.     them correctly, however it would be nice if as you entered new filled
  120.     objects that they were automatically given an appropriate depth.
  121.     This would involve finding the depth of all overlapping (filled?)
  122.     objects and setting the depth to be one less.
  123.     What about support for negative depth values?
  124. What really needs to be done is a major rework of the list structures used
  125.     to store xfig objects.  Here are some comments involving the change.
  126. -------- note about restructuring xfig data structures -------------
  127. Rather than having a depth attribute for objects, you can use the order
  128. in which objects are entered to determine their depth:  later objects
  129. appear on the top.  A raise/lower depth operation would allow you to
  130. change the ordering.
  131.  
  132. The consequences to the current implementation of converting totally to this
  133. scheme are non-trivial.  Instead of having separate lists for each object
  134. type, you need to have a single list which has a union of all the different
  135. objects as its type.  This will require changes in many places in the code.
  136. At the moment there are many places where each of the lists are traversed
  137. separately.  In many cases the code can be simplified dramatically if there
  138. was only a single list.  For example, to perform a move on an object there
  139. are separate routines (one for each object type) to start/cancel/place the
  140. object.  You could replace this by a single routine for start/cancel and
  141. place which worked no matter what type you had.  (Who says you can't use
  142. object-orientation in C :-)).  Another advantage is that the current caching
  143. scheme for redrawing would no longer be needed (i.e. redrawing would be
  144. greatly simplified).  Also undo would become simpler (I think).
  145.  
  146. If we want to make a smooth transition from the current scheme to the
  147. one described above (and I do), here is how I propose we do it:
  148.  
  149. We need to change every direct access to the current lists to use functions.
  150. i.e. something like
  151.         for (a=objects.arc; a!=NULL; a=a->next) ...
  152. to be something like
  153.         for (a=first_arc(); a!=NULL; a=next_arc(a)) ...
  154.  
  155. At the moment these routines would be simple to implement.
  156. Once all occurrences had been changed, it would simply be a matter
  157. of changing the underlying list structure and changing the first_arc,
  158. next_arc routines.  Then as we had time we could replace whichever
  159. sets of six loops by a single loop which did
  160.         for (o=first_obj(); o!=NULL; o=next_obj(o)) ...
  161. -------- end of note about restructuring xfig data structures -------------
  162.